package com.linrui.prod.domain;

import java.math.BigDecimal;
import java.util.Date;
import java.util.List;

import com.linrui.basic.domain.BaseDomain;
import com.linrui.org.domain.Department;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

/**
 * <p>
 * 
 * </p>
 *
 * @author linrui
 * @since 2022-10-21
 */
@Data
public class TProdProduct extends BaseDomain{

    private static final long serialVersionUID = 1L;
    @ApiModelProperty("id")
    private Long id;
    @ApiModelProperty("名字")
    private String name;
    @ApiModelProperty("价格")
    private BigDecimal price;
    @ApiModelProperty("描述")
    private String description;
    /**
     * 图片、视频地址
     */
    @ApiModelProperty("资源")
    private String resource;
    @ApiModelProperty("类型")
    private TProdProductType productType;

    List<TProdProductType> children;


    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public BigDecimal getPrice() {
        return price;
    }

    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public String getResource() {
        return resource;
    }

    public void setResource(String resource) {
        this.resource = resource;
    }

    public static long getSerialVersionUID() {
        return serialVersionUID;
    }

    public TProdProductType getProductType() {
        return productType;
    }

    public void setProductType(TProdProductType productType) {
        this.productType = productType;
    }

    @Override
    public String toString() {
        return "TProdProduct{" +
        ", id=" + id +
        ", name=" + name +
        ", price=" + price +
        ", description=" + description +
        ", resource=" + resource +

        "}";
    }
}
